package com.luych.toolbox.base.service.dao;

import com.luych.toolbox.base.service.entity.Script;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Optional;

public interface ScriptDao extends JpaRepository<Script, String>, JpaSpecificationExecutor<Script> {

    Optional<Script> findByName(String name);

}